package com.yenroc.invoice.pojo.xml;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 货物运输发票
 */
@XmlRootElement(name = "FreightService")
@XmlAccessorType(XmlAccessType.FIELD)
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class FreightServiceXmlDTO {
    /**
     * 货物起运地
     */
    @XmlElement(name = "Departure")
    private String departure;

    /**
     * 货物到达地
     */
    @XmlElement(name = "Destination")
    private String destination;

    /**
     * 运输工具种类
     */
    @XmlElement(name = "TypeOfTransportationMeans")
    private String typeOfTransportationMeans;

    /**
     * 运输工具牌号
     */
    @XmlElement(name = "TransportationMeansNo")
    private String transportationMeansNo;

    /**
     * 运输货物名称
     */
    @XmlElement(name = "NameOfGoodsTransported")
    private String nameOfGoodsTransported;
}
